package com.imooc.resource;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component //定义为组件被spring扫描到
@ConfigurationProperties(prefix = "file") //加入前缀,我们要取的是后面的属性
@PropertySource("classpath:file-upload-prod.properties") //打包后就在classpath下
@Data
public class FileUpload {
    private String imageUserFaceLocation;
    private String imageServerUrl;
}